//
//  NoticeCell.m
//  FingerUniversity
//
//  Created by vantle on 16/3/11.
//  Copyright © 2016年 vantle. All rights reserved.
//

#import "NoticeCell.h"
#import "UIColor+hexColor.h"
#define ScreenHeight [UIScreen mainScreen].bounds.size.height
#define ScreenWidth [UIScreen mainScreen].bounds.size.width
@implementation NoticeCell

- (void)awakeFromNib {
    // Initialization code
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _myImage=[[UIImageView alloc]init];
        _myImage.center=CGPointMake(20, self.contentView.center.y+10);
        _myImage.bounds=CGRectMake(0, 0, 30, 30);
        [self.contentView addSubview:_myImage];
        
        _titleLabel=[[UILabel alloc]initWithFrame:CGRectMake(_myImage.frame.origin.x+_myImage.frame.size.width+15, 10, self.contentView.frame.size.width-_myImage.frame.origin.x-_myImage.frame.size.width, 20)];
        _titleLabel.font=[UIFont systemFontOfSize:20];
        
        [self.contentView addSubview:_titleLabel];
        
        _timeLbel=[[UILabel alloc]initWithFrame:CGRectMake(_myImage.frame.origin.x+_myImage.frame.size.width+15, _titleLabel.frame.origin.y+_titleLabel.frame.size.height+5, self.contentView.frame.size.width, 20)];
        _timeLbel.textColor=[UIColor hexFloatColor:@"6F5536"];
        _timeLbel.font=[UIFont systemFontOfSize:15];
        [self.contentView addSubview:_timeLbel];
        
        _rightArrow=[[UIImageView alloc]init];
        _rightArrow.center=CGPointMake(ScreenWidth-20, self.contentView.center.y+10);
        _rightArrow.bounds=CGRectMake(0, 0, 10, 15);
        _rightArrow.image=[UIImage imageNamed:@"jiantou"];
        [self.contentView addSubview:_rightArrow];
        
    }
    return self;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
